package exercise8;

import exercise8.Loan;

import java.io.*;

public class Exercise17_06 {
    public static void main(String []args) throws IOException {
        ObjectOutputStream outputStream=new ObjectOutputStream(new FileOutputStream("Exercise17_06.dat"));

        outputStream.writeObject(new Loan(2.5,1,1000));
        outputStream.writeObject(new Loan(3.5,2,3000));
        outputStream.writeObject(new Loan(4.5,3,4000));
        outputStream.writeObject(new Loan(5.5,3,3000));
        outputStream.writeObject(new Loan(4.4,2,4222));

        System.out.println("Finished");
    }
}
